#pragma once

#include "IManager.h"
#include <vector>
using namespace std;

class CBase;

class CObjectManager : public IManager
{
	vector<CBase*> m_vecStuff;

	CObjectManager();
	CObjectManager(const CObjectManager&);
	CObjectManager& operator=(const CObjectManager&);
	~CObjectManager();

public:

	static CObjectManager* GetInstance();

	void Init();
	void Clear();
	void Shutdown();
	void Update(float fDelta);
	void Render();
	void AddObject(CBase* pObject);
	void RemoveObject(CBase* pObject);
	void CheckCollisons();
	void CheckUnits();
	void ResetUnitPos(int X, int Y);
};